-- GENERATED SPELL FOR [Fen Ray] --


function spell0_17731(pUnit, Event) --@Psychic Horror,n/a--
pUnit:FullCastSpellOnTarget(34984,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17731', 4500, 1)
end

function Sorts_17731(pUnit, Event)
local choix_sorts_17731 = math.random(0, 0)
if choix_sorts_17731 == 0 then
pUnit:RegisterEvent('spell0_17731', 1, 1)
end
end

function mob17731_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17731', math.random(1500, 3000), 1)
end

function mob17731_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17731_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17731_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17731, 1, 'mob17731_Action')
RegisterUnitEvent(17731, 2, 'mob17731_Leave')
RegisterUnitEvent(17731, 3, 'mob17731_Kill')
RegisterUnitEvent(17731, 4, 'mob17731_Die')
